imgOrig =imread('lena.jpg');
imgContrastStretch=imadjust(imgOrig, [0.1 0.4], [0.3 0.5 ]);
figure();
subplot(1, 2, 1);
imshow(imgOrig);
title('Origin');
subplot(1, 2, 2);
imshow(imgContrastStretch);
title('ContrastStretch');